package configdto

import (
	"gitee.com/ichub/goconfig/common/base/baseiface"
	"gitee.com/ichub/goconfig/common/basedi"
)

const singleNameConfigItem = "ConfigItem"

// init
// register
// load
func init() {
	registerBeanConfigItem()
}

// register ConfigItem
func registerBeanConfigItem() {
	basedi.RegisterLoadBean(singleNameConfigItem, LoadConfigItem)
}

func FindBeanConfigItem() *ConfigItem {
	return basedi.FindBean(singleNameConfigItem).(*ConfigItem)
}

func LoadConfigItem() baseiface.ISingleton {
	return &ConfigItem{}
}
